/*
@Time : 2019/2/26 0026 19:28
@Author : visons
*/
package handler

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

func SendResponse(c *gin.Context, response *Response) {
	c.JSON(http.StatusOK, response)
	c.Next()
}
